package com.foton.bpc.all.serialzation;

/**
 * @Author RenPu
 * @Date 2023/6/5 15:08
 * @Version 1.0
 * @Description: 序列化接口
 **/
public interface Serialzation {


    /**
     * 客户端： java object --->  byte[]
     * @param object
     * @return
     * @throws Exception
     */
    byte[] serialzation(Object object) throws Exception;


    /**
     * 服务端： byte[] ---> java object
     * @param parm
     * @param clazz
     * @return
     * @throws Exception
     */
    Object derialzation(byte[] parm,Class clazz) throws Exception;

}
